package com.example.demo.mapper;


import com.example.demo.pojo.entity.GenerateHistory;
import com.example.demo.pojo.entity.Task;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper

public interface TasksMapper {

    void deleteAllTasks(Long id);

    void deleteTaskHistories(Long taskId);

    List<Task> list(Integer userId);
    Task getTask(Integer id);

    List<GenerateHistory> getAllHistories_Tasks(Integer id);

    void createTask(Task task);

    void deleteGenerateHistory(Long id);
}
